<template>
  <n-config-provider :theme="baseConfig('darkTheme') ? darkTheme : null">
    <TitleBar v-if="isTauri" />
    <router-view></router-view>
    <n-global-style />
  </n-config-provider>

</template>
<script setup>
import { darkTheme } from 'naive-ui'
const isTauri = ref(Tauri.isTauri())
const { getSetValue } = chatSettingStore();
const baseConfig = getSetValue("base");
</script>